package com.cn.longdistancebusstation.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.cn.longdistancebusstation.R;
import com.cn.longdistancebusstation.base.BaseActivity;

/**
 * Created by mucheng on 2018/1/29.
 */

public class PayActivity extends BaseActivity implements View.OnClickListener{
    private LinearLayout mWechatPayLinearLayout,mAlipayPayLinearLayout;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pay_ticket);
        getTitleTextView().setText("支付方式");
        initView();
    }

    private void initView() {
        mWechatPayLinearLayout=(LinearLayout)findViewById(R.id.wechat_pay);
        mWechatPayLinearLayout.setOnClickListener(this);
        mAlipayPayLinearLayout=(LinearLayout)findViewById(R.id.alipay_pay);
        mAlipayPayLinearLayout.setOnClickListener(this);

    }

    @Override
    public void onClick(View view) {
        switch(view.getId()){
            case R.id.wechat_pay:
                wechat_pay();
                break;
            case R.id.alipay_pay:
                alipay_pay();
                break;
        }

    }

    private void wechat_pay() {
    }
    private void alipay_pay(){

    }
}
